//
//  SharedToll.swift
//  单例01
//
//  Created by apple on 16/2/27.
//  Copyright © 2016年 apple. All rights reserved.
//

import UIKit

class SharedToll: NSObject {

    
//    + (instancetype) sharedInstance{
//    
//    static CZNetworkTool *instance;
    
//    static dispatch_once_t onceToken;
    
//    dispatch_once(&onceToken, ^{
//    instance = [[CZNetworkTool alloc] init];
//    });
//    return instance;
//    }
    
    // 单例
//    static var onceToken: dispatch_once_t = 0
//    static var instance : SharedToll?
//    
//    class func sharedInstance() -> SharedToll {
//
//        dispatch_once(&onceToken) { () -> Void in
//            self.instance = SharedToll()
//        }
//        return instance!
//    }

    static let sharedInstance: SharedToll = SharedToll()
    
    
}
